package com.example.cloud.dao.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by ygl on 2017/4/9.
 */
@Entity(name = "skin_type")
@Data
@EqualsAndHashCode(callSuper=false)
public class SkinType extends CommonModel {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "patient_id")
    private Long patientId;

    @Column(name = "complaint_id")
    private Long complaintId;

    // 0: 未锁定 1：锁定
    @Column(name = "lock_flag")
    private Integer lockFlag;

    @Column(name = "type1")
    private Integer type1;

    @Column(name = "type2")
    private Integer type2;

    @Column(name = "type3")
    private Integer type3;

    @Column(name = "type4")
    private Integer type4;

    @Column(name = "sub1")
    private Integer sub1;

    @Column(name = "sub2")
    private Integer sub2;

    @Column(name = "sub3")
    private Integer sub3;

    @Column(name = "sub4")
    private Integer sub4;

    @Column(name="account_id")
    private Long accountId;
}
